# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rvi-capture
pkgver=14.a2e129b
pkgrel=8
pkgdesc='Capture packets sent or received by iOS devices.'
arch=('any')
groups=('blackarch' 'blackarch-sniffer' 'blackarch-mobile')
url='https://github.com/gh2o/rvi_capture'
license=('custom:unknown')
depends=('python' 'libimobiledevice' 'usbmuxd')
makedepends=('python-setuptools' 'git')
source=("$pkgname::git+https://github.com/gh2o/rvi_capture.git")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  sed -i 's/libimobiledevice.so/libimobiledevice-1.0.so/' rvi_capture.py
}

package() {
  cd "$pkgname"

  install -Dm 755 rvi_capture.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

